<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:66:"D:\Wamp\wamp64\www\juejin\public/../app/index\view\index\news.html";i:1532509708;}*/ ?>
﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>厦门掘金信息科技有限公司</title>
        <meta name="applicable-device" content="pc,mobile">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <link href="/static/style/bootstrap.min.css" type="text/css" rel="stylesheet" />
        <link href="/static/style/style.css" type="text/css" rel="stylesheet">
        <link href="/static/style/jquery.fullpage.css" rel="stylesheet">
        <link href="/static/style/animate.css" rel="stylesheet">
        <script type="text/javascript" src="/static/js/jquery.min.js"></script>

        <style type="text/css">
            .ce{ background: rgba(0,0,0,1);}
        </style>
    </head>
    <body id="div0">
        <div class="ce">
            <div class="top_box">
                <a href="index.html" class="logo"></a>
                <div class="search_btn">搜索</div>
                <div class="nav_btn">菜单</div>
                <div class="nav_box" style="display: none;">
                    <div class="nav_close"><img src="/static/images/close.png"></div>
                    <div class="nav">
                        <ul>
                            <li class="on"><a href="<?php echo url('about'); ?>" class="mmm"><span>ABUOT</span><div>关于</div></a></li>
                            <li><a href="<?php echo url('business'); ?>" class="mmm"><span>BUSINESS</span><div>业务</div></a></li>
                            <li><a href="<?php echo url('works'); ?>" class="mmm"><span>WORKS</span><div>案例</div></a></li>
                            <li><a href="<?php echo url('news'); ?>" class="mmm"><span>NEWS</span><div>新闻</div></a></li>
                            <li><a href="<?php echo url('contact'); ?>" class="mmm"><span>CONTACT</span><div>联系</div></a></li>
                        </ul>
                    </div>
                </div>
                <div class="search_box" style="display: none;">
                    <div class="search_close"><img src="/static/images/close.png"></div>
                    <form id="search_form" class="search_form">
                        <input value="" placeholder="SEARCH" type="text" class="search_input">
                        <button class="search_a" type="submit">进入</button>
                    </form>
                </div>
                <script type="text/javascript">
                    $(document).ready(function () {
                    $(".nav_close").click(function () {
                    $(".nav_box").fadeOut();
                    });
                    $(".nav_btn").click(function () {
                    $(".nav_box").fadeIn();
                    });
                    $(".search_close").click(function () {
                    $(".search_box").fadeOut();
                    });
                    $(".search_btn").click(function () {
                    $(".search_box").fadeIn();
                    });
                    });
                </script>
            </div>
        </div>

        <div class="wo_box1 nw_box1">
            <div class="m_wrap">
                <div class="h_tit h_tit1"><span>NEWS</span><h3>新闻</h3></div>
                <ul class="h_tab clearfix">
                    <li class="<?php if($category == 0): ?>active<?php else: ?>''<?php endif; ?>"><a href="<?php echo url(); ?>">全部分类</a></li>
                    <li class="<?php if($category == 7): ?>active<?php else: ?>''<?php endif; ?>"><a href="<?php echo url(); ?>?category_id=7">掘金学堂</a></li>
                    <li class="<?php if($category == 8): ?>active<?php else: ?>''<?php endif; ?>"><a href="<?php echo url(); ?>?category_id=8">行业新闻</a></li>
                </ul>
                <div class="clearfix nw_ul">
                    <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <div class="col-lg-4  col-sm-6 col-xs-12">
                        <a href="<?php echo url('newsdetail',array('id'=>$vo['id'])); ?>">
                            <img src="<?php echo get_picture_url($vo['cover_id']); ?>">
                        </a>
                        <div class="h_t_box ne_t_box">
                            <a href="<?php echo url('newsdetail',array('id'=>$vo['id'])); ?>">
                                <h6><?php echo (isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:''); ?></h6>
                                <span><?php echo $vo['update_time']; ?></span>
                                <p><?php echo htmlspecialchars_decode((isset($vo['content']) && ($vo['content'] !== '')?$vo['content']:'')); ?></p>
                                <div class="h_more">Reda more<i></i></div>
                            </a>
                        </div>
                    </div>
                    <?php endforeach; endif; else: echo "" ;endif; else: ?>
                    <div class="col-lg-4  col-sm-6 col-xs-12">
                        <a href="#">
                            <img src="/static/images/news_img.jpg">
                        </a>
                        <div class="h_t_box ne_t_box">
                            <a href="#">
                                <h6>暂无数据</h6>
                                <span>2018.06.12</span>
                                <p>暂无描述......</p>
                                <div class="h_more">Reda more<i></i></div>
                            </a>
                        </div>
                    </div>
                    <?php endif; ?>
                </div>

<!--                翻页按钮
                <div class="pager_div1">
                    <ul class="pager_box">

                    </ul>
                </div>
            </div>
        </div>-->
        <div class="box-footer clearfix text-center">
              <?php echo $list->render(); ?>
          </div>

        <div class="footer">
            <div class="foot_contact clearfix">
                <div class="map_img"></div>
                <div class="m_wrap">
                    <div class="foot_con_box">
                        <h3 class="foot_tit">厦门掘金信息科技有限公司</h3>
                        <ul class="clearfix foot_con_ul">
                            <li class="foot_con_i1">厦门市湖里区县后社379号宏瑞商务A栋311</li>
                            <li class="foot_con_i2"><a href="mailto:Hr@xmjuejin.com">Hr@xmjuejin.com</a></li>
                            <li class="foot_con_i3">0592-5782295</li>
                            <li class="foot_con_i4">358859998</li>
                        </ul>
                        <h3 class="foot_tit">给我们留言</h3>
                        <div class="form_box form_b">
                            <div class="clearfix">
                                <div class="tr2">
                                    <input type="text" class="tr_input" placeholder="您的姓名">
                                </div>
                                <div class="tr2">
                                    <input type="text" class="tr_input" placeholder="您的电话">
                                </div>
                                <div class="tr2">
                                    <input type="text" class="tr_input" placeholder="您的邮箱">
                                </div>
                                <div class="tr2 tr_100">
                                    <textarea class="tr_textarea" placeholder="留言内容"></textarea>
                                </div>
                            </div>
                            <a href="#" class="form_btn2">发送留言</a>
                        </div>


                    </div>
                </div>
            </div>
            <div class="copright clearfix">
                <a href="#" class="navon0 foot_top"><img src="/static/images/top_img.png"></a>
                <div class="fl col-lg-6 col-md-8 col-sm-12 col-xs-12">版权所有(C)厦门掘金信息科技有限公司  闽ICP备15009892号</div>
                <div class="fr col-lg-6 col-md-4 col-sm-12 col-xs-12">
                    <a href="#" class="foot_icon"><img src="/static/images/foot_icon3.png"></a>
                    <a href="#" class="foot_icon"><img src="/static/images/foot_icon2.png"></a>
                    <a href="#" class="foot_icon"><img src="/static/images/foot_icon1.png"></a>
                </div>
            </div>
        </div>

        <script>

//            //动态生成分页按钮
//            window.onload = function()
//            {
//                var page_total = <?php echo (isset($page_total['total'] ) && ($page_total['total']  !== '')?$page_total['total'] : 0); ?>,
//                    pages = <?php echo (isset($page_total['pages'] ) && ($page_total['pages']  !== '')?$page_total['pages'] : 1); ?>;
//                for (var i = 0; i < page_total; i++){
//                    if (i < 9){
//                        var str = '0' + (i + 1);
//                    } else{
//                        var str = i;
//                    }
//                    if (pages - 1 == i){
//                        $("<li class='pager-item'><a class='first' href='#' onclick='pageBtn(" + parseInt(str) + ")'>" + str + "</a></li>").appendTo(".pager_box");
//                    } else{
//                        $("<li class='pager-item'><a href='#' onclick='pageBtn(" + parseInt(str) + ")'>" + str + "</a></li>").appendTo(".pager_box");
//                    }
//                }
//                $("<li class='pager-item'><a href='#'>NEXT</a></li>").appendTo(".pager_box");
//            }
//
//            //分页按钮点击事件
//            function pageBtn($pages)
//            {
//                
//                var category = <?php echo (isset($page_total['category_id'] ) && ($page_total['category_id']  !== '')?$page_total['category_id'] : ''); ?>;
//                    
//                window.location.href = "<?php echo url(); ?>?page=" + $pages+"&&category_id="+category;
//            }
//
//



        </script>

        <script type="text/javascript" src="/static/js/main.js"></script><!--nav固定

        <script src="/static/js/bootstrap.js"></script>
    </body>
</html>
